home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / crcset11.zip / VIRUSCRC.H < prev    next >
C/C++ Source or Header  |  1990-11-16  |  637b  |  38 lines

  1. /*
  2. VIRUSCRC.H
  3.  
  4. Kevin Dean
  5. Fairview Mall P.O. Box 55074
  6. 1800 Sheppard Avenue East
  7. Willowdale, Ontario
  8. CANADA    M2J 5B9
  9. CompuServe ID: 76336,3114
  10.  
  11. November 16, 1990
  12.  
  13.     This is the interface to the anti-virus CRC check in VALIDCRC.C and
  14. VIRUSDAT.C.
  15.  
  16.     This code is public domain.
  17. */
  18.  
  19.  
  20. typedef
  21.   unsigned long crc32_t;
  22.  
  23. union filecrc
  24.   {
  25.   char searchstr[8];    /* String to search for. */
  26.  
  27.   struct
  28.     {
  29.     crc32_t polynomial;    /* Polynomial for this file. */
  30.     crc32_t crc;    /* Calculated CRC for this file. */
  31.     } x;
  32.   };
  33.  
  34.  
  35. extern const union filecrc _viruscrc;
  36.  
  37.  
  38. int isvalidcrc(const char *progname);